package com.shop.cereshop.admin.dao.role;

import com.shop.cereshop.admin.param.role.RoleGetAllParam;
import com.shop.cereshop.commons.domain.role.CerePlatformRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CerePlatformRoleDAO {
    int deleteByPrimaryKey(Long roleId);

    int insert(CerePlatformRole record);

    int insertSelective(CerePlatformRole record);

    CerePlatformRole selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(CerePlatformRole record);

    int updateByPrimaryKey(CerePlatformRole record);

    CerePlatformRole getById(@Param("roleId") Long roleId);

    List<CerePlatformRole> getAll(RoleGetAllParam param);
}